package com.example.common;

public class SysConstant {
	
	public static final Integer TOKEN_LENGTH = 16 ;
	 
	//订单状态相关变量
	//初始�?
	public final static int ORDER_STATUS_CREATE = 0;
	//支付过程�?
	public final static int ORDER_STATUS_RUNNING = 1;
	//支付完成
	public final static int ORDER_STATUS_FINISH = 2;

	/** 支付完成带取货*/
	public final static int ORDER_STATUS_PICKUP = 21;
	
	/** 待取货超时（4个小时）*/
	public final static int ORDER_STATUS_PICKUPTIMEOUT = 22;
	
	
	//成产成功
	public final static int ORDER_STATUS_SUCCESS = 3;
	//取消
	public final static int ORDER_STATUS_TIMEOUT = 4;
	//取消
	public final static int ORDER_STATUS_CANCEL = 5;
	
	
	//0元订单支付类型
	public final static int PAY_TYPE_ZERO = 0;
	//支付类型微信
	public final static int PAY_TYPE_WX = 1;
	//支付类型支付�?
	public final static int PAY_TYPE_ZFB = 2;
	
	/**
	 * 钉钉支付方式
	 */
	public final static int PAY_TYPE_DD = 5;
	
	public final static int PAY_TYPE_JHLZF = 4;
	//已�??�?
	public final static int PAY_BACK = 1;
	//未�??�?
	public final static int NO_PAY_BACK = 0;
	
	
	public final static int USER_DEVICE_TYPE_MANAGER = 1;//管理权限
	
	public final static int USER_DEVICE_TYPE_SERVICE = 2;//维护权限
	
	public final static int USER_DEVICE_TYPE_REPAIR = 3;//维护权限
	
	public final static int USER_DEVICE_TYPE_RENT = 4;//租赁

	// REDIS TAG
	public final static String MANAGER_LOGIN_TAG = "MANAGER_LOGIN:";
	
	
	 
	public static final String WX_INFO_SESSION = "wxInfoSession";
	 
	public static final String USIN_INFO_SESSION = "usinInfoSession";
	 
	
	public final static int USER_TYPE_REPAIR = 2;//维修人员
	
	public final static int USER_TYPE_SERVICE = 3;//维护人员
	
	
	public final static int ALARM_WORK_STATUS_WAIT = 1;//待处理
	
	public final static int ALARM_WORK_STATUS_FINISH = 2;//已处理
	
	public final static int ALARM_WORK_STATUS_CLOSE = 3;//已关闭
	
	//订单id长度
	public static final int orderIdLength = 16;

	
	
	public static final String TokenUrl = "TokenUrl";
	public static final String JsapiUrl = "JsapiUrl";
	public static final String Oauth2AccessTokenUrl = "Oauth2AccessTokenUrl";
	public static final String RefreshOauth2AccessTokenUrl = "RefreshOauth2AccessTokenUrl";
	public static final String SNSUserInfoUrl = "SNSUserInfoUrl";
	
	
	public static final int FEA_TYPE_WX = 1;//微信
	public static final int FEA_TYPE_ZFB  = 2;//支付宝

	/**
	 * 合同支付权限，有
	 */
	public final static Integer CONTRACT_PAY_POWER_HAVE = 1;
	
	/**
	 * 合同支付权限，无
	 */
	public final static Integer CONTRACT_PAY_POWER_NO = 0;
	
	//MQTT 相关
	public static final String PUSH_TO_DEVICE_CLEAN = "fnd_wlw_device_notify/p2p/";

	public static final int APPID_LENGTH = 10;

	public static final int APPKEY_LENGTH = 20;
	
	public static final String JHLZF_OPEN_ID = "jhlzfOpenId:";
}
